package cn.sciento.farm.devicemanager.api.jsonrpc;

import cn.sciento.farm.devicemanager.dao.entity.DevTimer;
import cn.sciento.farm.devicemanager.dao.model.PageConditionQuery;
import cn.sciento.farm.devicemanager.dao.model.ResponseMessage;
import com.googlecode.jsonrpc4j.JsonRpcMethod;
import com.googlecode.jsonrpc4j.JsonRpcService;

/**
 * 定时
 */
@JsonRpcService("rpc/hardware.timer")
public interface TimerJsonApi {

    ResponseMessage create(DevTimer timer);

    ResponseMessage update(DevTimer timer);

    ResponseMessage delete(Long id);

    ResponseMessage list(Long controllerId);

    ResponseMessage get(Long id);

    @JsonRpcMethod("get_timer_log")
    ResponseMessage getTimerLog(PageConditionQuery data);
}
